namespace :sales do
  resources :stores do
    resources :products, only: [:index, :show] do
      get :search, on: :collection
    end
  end

  resources :product_categories do
    resources :store_products, as: "products", path: "products"
  end

  resources :cart_items do
    member do
      get :successful
    end
  end

  resources :store_orders
  resources :custom_products do
    member do
      get :successful
    end
  end
end #end namespace sales
